Skip to main content

Chat Entities

These entities are used by the Chat adapter.

Chat interface

Represents a chat between Epicenter users, including metadata and messages.

Properties

  • permit (Permit): Controls who can access the chat.
  • chatKey (string): Unique identifier for the chat.
  • messages (ChatMessage[]): Array of messages exchanged in this chat.
  • room (string): Name of the chat room.
  • scope (GenericScope): The chat scope.

ChatMessage interface

Represents a single message exchanged in a chat.

Properties

  • senderKey (string): Unique identifier of the user who sent the message.
  • receiverKey (string): Unique identifier of the user who received the message.
  • created (string): ISO timestamp indicating when the message was created.
  • id (string): Unique identifier for the message.
  • message (string): The text of the message.